<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>社团成员列表</title>
	<style>.size{width:180px;height:200px;}</style>
	<link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/study/Public/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
	
</head>
<body>
<h1>社团成员管理页面</h1>
<table class='table table-bordered'>
<tr>
<th>所属社团</th>
<th>学号</th>
<th>用户名</th>
<th>状态</th>
<th>操作</th>
</tr>
<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?></tr>
<th><?php echo ($vo["gid"]); ?></th>	
<th><?php echo ($vo["stunum"]); ?></th>
<th><?php echo ($vo["username"]); ?></th>
<th><?php if($vo.members.state == 0): ?>不通过
		<?php elseif($vo.members.state == 1): ?>通过
        <?php else: ?>负责人<?php endif; ?></th>
		<th>
	        <div class="btn-group">
                <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                   操作
                 <span class="caret"></span>
                  </a>
	             <ul class="dropdown-menu pull-right">
                 <li>
                    <?php if($vo["state"] == 0): ?><a href="setmjy?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">通过</i></a>
                    <?php else: ?><a href="delmjy?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">不通过</i></a><?php endif; ?>
                     </a></li>
                      <li><a href="delmember?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">删除</i></a>
                     </ul>

	</th>	
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </table>
    <h1>社团活动管理页面</h1>
<table class='table table-bordered'>
<tr>
<th>活动名称</th>
<th>所属社团</th>
<th>发布人</th>
<th>发布时间</th>
<th>活动时间</th>
<th>活动地点</th>
<th>活动简介</th>
<th>活动文件</th>
<th>注意事项</th>
<th>点击次数</th>
<th>状态</th>
<th>操作</th>
</tr>
<?php if(is_array($stuprac)): $i = 0; $__LIST__ = $stuprac;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
  <!-- <th><img src="/study/Public/Uploads/photo/<?php echo ($vo["pfile"]); ?>" alt="文件不存在" ></th> -->
  <!-- /study/Public  表示public目录-->
  <th><?php echo ($vo["pname"]); ?></th>
  <th><?php echo ($vo["groupname"]); ?></th>
  <th><?php echo ($vo["puser"]); ?></th>
  <th><?php echo ($vo["pdate"]); ?></th>
  <th><?php echo ($vo["ptime"]); ?></th>
  <th><?php echo ($vo["place"]); ?></th>
  <th><?php echo ($vo["intro"]); ?></th>
  <th><img src="/study/Public/Uploads/photo/<?php echo ($vo["pfile"]); ?>" alt="头像不存在" class="size"></th>
  <th><?php echo ($vo["matters"]); ?></th>
  <th><?php echo ($vo["hit"]); ?></th>
  <th><?php if($vo["state"] == 0): ?>禁止发布
    <?php else: ?>允许<?php endif; ?></th>
    <th><!-- <a href="delpractice?id=<?php echo ($vo["pid"]); ?>">删除</a><br>
  <a href="updatepractice?id=<?php echo ($vo["pid"]); ?>">修改</a> -->
          <div class="btn-group">
                <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                   操作
                 <span class="caret"></span>
                  </a>
               <ul class="dropdown-menu pull-right">
                 <li><a href="updatepractice?id=<?php echo ($vo["pid"]); ?>"><i class="icon-envelope"></i>修改</a></li>
                 <li><a href="delpractice?id=<?php echo ($vo["pid"]); ?>"><i class="icon-edit"></i> 删除</a></li>
                     <li><a href="addpuser?id=<?php echo ($vo["pid"]); ?>"><i class="icon-edit"></i>添加活动参与者</a></li>
                     <li><a href="stupraclist?id=<?php echo ($vo["pid"]); ?>"><i class="icon-edit"></i>显示活动参与者</a></li>
                     </ul>

  </th>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</body>
</html>